import http from '../utils/http';

export function getStorehouse(params) {
    return http.get('/api/storehouse', params);
}

export function addStorehouse(params) {
    return http.post('/api/storehouse', params);
}

export function updateStorehouse(params) {
    return http.put(`/api/storehouse/${params.id}`, params);
}

export function delStorehouse(params) {
    return http.delete(`/api/storehouse/${params.id}`, params);
}

export function getStorehouseDetail(params) {
    return http.get(`/api/storehouse/${params.id}`, params);
}

export function getStorehouseDownload(params) {
    return http.get('/api/storehouse/download', params);
}


